package com.example.zn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

import lombok.Data;

/**
 * 
 * @TableName product
 */
@TableName(value ="product")
@Data
public class Product implements Serializable {
    /**
     * 商品编号
     */
    @TableId(type = IdType.AUTO)
    private Integer proid;

    /**
     * 商品名字
     */
    private String name;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 库存
     */
    private Integer procount;

    /**
     * 上架时间
     */
    private LocalDate shelftime;

    /**
     * 封面
     */
    private String img;

    /**
     * 外键关联分类表
     */
    private Integer categoryid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}